﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace city7
{
    public partial class FormSELtov : Form
    {
        set_tov.class_set_tov cst;
        public FormSELtov()
        {
            InitializeComponent(); InitializeComponentMy();
        }
        void InitializeComponentMy()
        {
            cst = new set_tov.class_set_tov();
            cst.MOC = set_tov.mode_set_tov.work_0; 
            setColor(Color.Transparent);
            toolStripMenuItem31.Text = "work (0)";
        }

        private void toolStripMenuItem31_Click(object sender, EventArgs e)
        {
            cst.openListMode(toolStripMenuItem31);
            if (cst.MOC == set_tov.mode_set_tov.work_0)
            { setColor(Color.Transparent); }
            else
            { setColor(Color.Goldenrod ); }
        }

        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void setColor(Color co)
        {
            button1.BackColor = co;
            button2.BackColor = co;
            button3.BackColor = co;
            button4.BackColor = co;
            button5.BackColor = co;
            button6.BackColor = co;
            button7.BackColor = co;
            button8.BackColor = co;
            button9.BackColor = co;
            button10.BackColor = co;
            button11.BackColor = co;
            button12.BackColor = co;
            button13.BackColor = co;
            button14.BackColor = co;
            button15.BackColor = co;
            button16.BackColor = co;
            button17.BackColor = co;
            button18.BackColor = co;
            button19.BackColor = co;
            button21.BackColor = co;
            button22.BackColor = co;
            button23.BackColor = co;
            button24.BackColor = co;
            button25.BackColor = co;
            button26.BackColor = co;
            button27.BackColor = co;
            button28.BackColor = co;
            button29.BackColor = co;
            button31.BackColor = co;
            button32.BackColor = co;
            button33.BackColor = co;
            button34.BackColor = co;
            button35.BackColor = co;
            button36.BackColor = co;
            button37.BackColor = co;
            button38.BackColor = co;
            button39.BackColor = co;
            button41.BackColor = co;
            button42.BackColor = co;
            button43.BackColor = co;
            button44.BackColor = co;
            button45.BackColor = co;
            button46.BackColor = co;
            button47.BackColor = co;
            button48.BackColor = co;
            button49.BackColor = co;
            button50.BackColor = co;
            button51.BackColor = co;
            button52.BackColor = co;
            button53.BackColor = co;
            button54.BackColor = co;
            button55.BackColor = co;
            button56.BackColor = co;
            button57.BackColor = co;
            button58.BackColor = co;
            button59.BackColor = co;
            button60.BackColor = co;
            button61.BackColor = co;
            button62.BackColor = co;
            button63.BackColor = co;
            button64.BackColor = co;

            button65.BackColor = co;
            button66.BackColor = co;
            button67.BackColor = co;
            button68.BackColor = co;
            button69.BackColor = co;
            button70.BackColor = co;
            button71.BackColor = co;
            button72.BackColor = co;
            button73.BackColor = co;
            button74.BackColor = co;
            button75.BackColor = co;
            button76.BackColor = co;
            button77.BackColor = co;
            button78.BackColor = co;
            button79.BackColor = co;
            button80.BackColor = co;

            button81.BackColor = co;
            button82.BackColor = co;
            button83.BackColor = co;
            button84.BackColor = co;
            button85.BackColor = co;
            button86.BackColor = co;
            button87.BackColor = co;
            button88.BackColor = co;
            button89.BackColor = co;
            button90.BackColor = co;
            button91.BackColor = co;
            button92.BackColor = co;
            button93.BackColor = co;
            button94.BackColor = co;
            button95.BackColor = co;
            button96.BackColor = co;


            toolStripButton5.BackColor = co;
            toolStripButton1.BackColor = co;
            toolStripButton2.BackColor = co;
            toolStripButton4.BackColor = co;
            toolStripButton5.BackColor = co;
            toolStripButton6.BackColor = co;
            toolStripButton8.BackColor = co;

            toolStripButton16.BackColor = co;
            toolStripButton17.BackColor = co;
            toolStripButton18.BackColor = co;
            toolStripButton20.BackColor = co;
            toolStripButton19.BackColor = co;

            toolStripButton14.BackColor = co;
            toolStripButton15.BackColor = co;
            toolStripButton13.BackColor = co;
            toolStripButton12.BackColor = co;
            toolStripButton11.BackColor = co;
            toolStripButton10.BackColor = co;
            toolStripButton9.BackColor = co;

            toolStripButton25.BackColor = co;
            toolStripButton23.BackColor = co;
            toolStripButton24.BackColor = co;
            toolStripButton22.BackColor = co;
            toolStripButton21.BackColor = co;

        }

        private void setDisplayStile(set_tov.displayStile ds)
        {
            int ids = (int)ds;
            toolStripButton5.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton1.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton2.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton4.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton5.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton6.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton8.DisplayStyle = (ToolStripItemDisplayStyle)ids;

            toolStripButton16.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton17.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton18.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton20.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton19.DisplayStyle = (ToolStripItemDisplayStyle)ids;

            toolStripButton14.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton15.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton13.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton12.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton11.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton10.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton9.DisplayStyle = (ToolStripItemDisplayStyle)ids;

            toolStripButton25.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton23.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton24.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton22.DisplayStyle = (ToolStripItemDisplayStyle)ids;
            toolStripButton21.DisplayStyle = (ToolStripItemDisplayStyle)ids;

        }
        private void setText(string txt)
        {
            toolStripButton5.Text = txt;
            toolStripButton1.Text = txt;
            toolStripButton2.Text = txt;
            toolStripButton4.Text = txt;
            toolStripButton5.Text = txt;
            toolStripButton6.Text = txt;
            toolStripButton8.Text = txt;

            toolStripButton16.Text = txt;
            toolStripButton17.Text = txt;
            toolStripButton18.Text = txt;
            toolStripButton20.Text = txt;
            toolStripButton19.Text = txt;

            toolStripButton14.Text = txt;
            toolStripButton15.Text = txt;
            toolStripButton13.Text = txt;
            toolStripButton12.Text = txt;
            toolStripButton11.Text = txt;
            toolStripButton10.Text = txt;
            toolStripButton9.Text = txt;

            toolStripButton25.Text = txt;
            toolStripButton23.Text = txt;
            toolStripButton24.Text = txt;
            toolStripButton22.Text = txt;
            toolStripButton21.Text = txt;

        }

        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton8_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton6_Click(object sender, EventArgs e)
        {

        }
        public void clickIfMode(object sender, EventArgs e)
        {
            string s = "0";
            if (cst.MOC == set_tov.mode_set_tov.work_0) 
            {s = "work_0";}  
            else {s= "set_1";}
            
                System.Windows.Forms.MessageBox.Show( string.Concat( this.ActiveControl.Name,"  ",s));
        }
        private void iniEventButton()
        {
            
        }

        private void toolStripButton7_Click_1(object sender, EventArgs e)
        {
            this.Close();
        }

        //---------------------------------1
        private void toolStripButton8_Click_1(object sender, EventArgs e)
        {
            //too22();

            ToolStripButton tb = new ToolStripButton();
            tb = toolStripButton8;

            if (cst.MOFO == set_tov.mode_set_folder_object.no_0)
            {

                DataTable dt = cst.tableControl();
                setDisplayStile(set_tov.displayStile.Text_1);
                setText("TEXT");
                //m(dt.Rows.Count);
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    dt.Rows[i]["fpa"] = (int)set_tov.type_fpa.folder_PrepForSet_2;

                    if (dt.Rows[i]["name"].ToString() == toolStripButton8.Name)
                    {
                        dt.Rows[i]["fpa"] = (int)set_tov.type_fpa.select_folder_1;
                        tb.Text = "...";
                    }
                }
                cst.update__pro_listbutton(dt); m("ok");
                cst.MOFO = set_tov.mode_set_folder_object.firstSelect_1;
            }
            else if (cst.MOFO == set_tov.mode_set_folder_object.firstSelect_1)
            {
                ETALON.WORK.FormTXT ft = new ETALON.WORK.FormTXT("ГРУППА");
                tb.Text = ft.txtEnter;
                string sql_dml = string.Concat("UPDATE ");

            }
        }

        private void toolStripButton6_Click_1(object sender, EventArgs e)
        {

        }

        private void toolStripButton5_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton4_Click_1(object sender, EventArgs e)
        {

        }

        private void toolStripButton2_Click_1(object sender, EventArgs e)
        {

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {

        }


        //--------------------------------2
        private void toolStripButton21_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton22_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton24_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton23_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton25_Click(object sender, EventArgs e)
        {

        }


        //---------------------------------3
        private void toolStripButton9_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton10_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton11_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton12_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton13_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton15_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton14_Click(object sender, EventArgs e)
        {

        }

        //------------------------------------------4
        private void toolStripButton19_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton20_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton18_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton17_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton16_Click(object sender, EventArgs e)
        {

        }
        private void m(object o)
        {
            System.Windows.Forms.MessageBox.Show(o.ToString());
        }
        private void too22()
        {
            string s="", ss="";
            foreach (Control c in this.Controls)
            {
                //foreach (Control cc in c.Controls)
                //{
                //    ss = string.Concat(ss, ";", cc.Name);
                //}

                s = string.Concat(s, ";", c.Name, "-", c.Controls.Count ); ss = "";

                if (c.Name == toolStrip1.Name)
                {
                    
                }
            }
            m(s);
        }






        //----------------------1111
        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {

        }

        private void button4_Click(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {

        }

        private void button7_Click(object sender, EventArgs e)
        {

        }

        private void button6_Click(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {

        }

        private void button12_Click(object sender, EventArgs e)
        {

        }

        private void button11_Click(object sender, EventArgs e)
        {

        }

        private void button10_Click(object sender, EventArgs e)
        {

        }

        private void button9_Click(object sender, EventArgs e)
        {

        }

        private void button16_Click(object sender, EventArgs e)
        {

        }



        //----------------------2222
        private void button15_Click(object sender, EventArgs e)
        {

        }

        private void button14_Click(object sender, EventArgs e)
        {

        }

        private void button13_Click(object sender, EventArgs e)
        {

        }
        //-----------------------------2222
        private void button64_Click(object sender, EventArgs e)
        {

        }

        private void button63_Click(object sender, EventArgs e)
        {

        }

        private void button62_Click(object sender, EventArgs e)
        {

        }

        private void button61_Click(object sender, EventArgs e)
        {

        }

        private void button60_Click(object sender, EventArgs e)
        {

        }

        private void button59_Click(object sender, EventArgs e)
        {

        }

        private void button58_Click(object sender, EventArgs e)
        {

        }

        private void button57_Click(object sender, EventArgs e)
        {

        }

        private void button56_Click(object sender, EventArgs e)
        {

        }

        private void button55_Click(object sender, EventArgs e)
        {

        }

        private void button54_Click(object sender, EventArgs e)
        {

        }

        private void button53_Click(object sender, EventArgs e)
        {

        }

        private void button52_Click(object sender, EventArgs e)
        {

        }

        private void button51_Click(object sender, EventArgs e)
        {

        }

        private void button50_Click(object sender, EventArgs e)
        {

        }

        private void button49_Click(object sender, EventArgs e)
        {

        }
        //------3333
        private void button80_Click(object sender, EventArgs e)
        {

        }

        private void button79_Click(object sender, EventArgs e)
        {

        }

        private void button78_Click(object sender, EventArgs e)
        {

        }

        private void button77_Click(object sender, EventArgs e)
        {

        }

        private void button76_Click(object sender, EventArgs e)
        {

        }

        private void button75_Click(object sender, EventArgs e)
        {

        }

        private void button74_Click(object sender, EventArgs e)
        {

        }

        private void button73_Click(object sender, EventArgs e)
        {

        }

        private void button72_Click(object sender, EventArgs e)
        {

        }

        private void button71_Click(object sender, EventArgs e)
        {

        }

        private void button70_Click(object sender, EventArgs e)
        {

        }

        private void button69_Click(object sender, EventArgs e)
        {

        }

        private void button68_Click(object sender, EventArgs e)
        {

        }

        private void button67_Click(object sender, EventArgs e)
        {

        }

        private void button66_Click(object sender, EventArgs e)
        {

        }

        private void button65_Click(object sender, EventArgs e)
        {

        }


        //----------------------------------4444
        private void button84_Click(object sender, EventArgs e)
        {

        }

        private void button81_Click(object sender, EventArgs e)
        {

        }

        private void button82_Click(object sender, EventArgs e)
        {

        }

        private void button83_Click(object sender, EventArgs e)
        {

        }

        private void button88_Click(object sender, EventArgs e)
        {

        }

        private void button87_Click(object sender, EventArgs e)
        {

        }

        private void button86_Click(object sender, EventArgs e)
        {

        }

        private void button85_Click(object sender, EventArgs e)
        {

        }

        private void button92_Click(object sender, EventArgs e)
        {

        }

        private void button91_Click(object sender, EventArgs e)
        {

        }

        private void button90_Click(object sender, EventArgs e)
        {

        }

        private void button89_Click(object sender, EventArgs e)
        {

        }

        private void button96_Click(object sender, EventArgs e)
        {

        }

        private void button95_Click(object sender, EventArgs e)
        {

        }

        private void button94_Click(object sender, EventArgs e)
        {

        }

        private void button93_Click(object sender, EventArgs e)
        {

        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            //toolStripMenuItem1.DisplayStyle = ToolStripItemDisplayStyle.Image ;
            //m(string.Concat(
            //    toolStripMenuItem1.DisplayStyle.ToString(), 
            //    " ",
            //    (int)toolStripMenuItem1.DisplayStyle)
            //                );
            //toolStripMenuItem1.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText ;
            //m(string.Concat(
            //    toolStripMenuItem1.DisplayStyle.ToString(),
            //    " ",
            //    (int)toolStripMenuItem1.DisplayStyle)
            //                );
            //toolStripMenuItem1.DisplayStyle = ToolStripItemDisplayStyle.None;
            //m(string.Concat(
            //    toolStripMenuItem1.DisplayStyle.ToString(),
            //    " ",
            //    (int)toolStripMenuItem1.DisplayStyle)
            //                );
            //toolStripMenuItem1.DisplayStyle = ToolStripItemDisplayStyle.Text;
            //m(string.Concat(
            //    toolStripMenuItem1.DisplayStyle.ToString(),
            //    " ",
            //    (int)toolStripMenuItem1.DisplayStyle)
            //                );
        }
    }
}
